import request from '@/utils/request'

/**
 * 查询生产班次数据弹出框
 * @param selectPageShift
 */
export function selectPageShift(data) {
  return request({
    url: `/md/commonBrowsers/selectPageShift`,
    method: 'get',
    params: data
  })
}
/**
 * 通过生产班次查询数据
 * @param inquire
 */
export function inquireShifts(shifts) {
  return request({
    url: `/md/shifts/query`,
    method: 'get',
    params: shifts
  })
}
/**
 * 保存
 * @param sitesSave
 */
export function saveShifts(data) {
  return request({
    url: `/md/shifts/save`,
    method: 'post',
    data
  })
}

/**
 * 删除
 * @param delete
 */
export function deleteShifts(data) {
  return request({
    url: `/md/shifts/delete`,
    method: 'get',
    params: data
  })
}
